<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>任务管理</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="root_path" content="${pageContext.request.contextPath}" id="JQ_root_path">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/core.css">
    <style type="text/css">
        body, html {background-color: #fff}
        .red {color: #ff0000;}
        .main-content-t {background-color: #fff;width:98%; margin: 0 auto;}
        .now-date-time {font-size: 20px;text-align: center;}
        .txtLeft { text-align: left;}
        .btnDiv { margin: 0 0 20px 10px; background-color: #fff;}
        .btnDiv button {margin-left: 15px;}
        #quartzTable {margin-top:15px}
    </style>
</head>
<body>
<div class="main-content-t">
    <div class="now-date-time">当前服务器时间为：<span id="nowTime" class="red"></span>&nbsp;&nbsp;&nbsp;&nbsp;
        当前服务器时区为：<span class="red">${zone}</span>
    </div>
    <table id="quartzTable" class="zy-datatable">
        <thead>
            <tr>
                <th>名字</th>
                <th>组名</th>
                <th>下次执行时间</th>
                <th>上次执行时间</th>
                <th>结束时间</th>
                <th>描述</th>
                <th>任务状态</th>
                <th>cron表达式</th>
                <th>时区</th>
                <th style="width:12%;text-align: center;">操作</th>
            </tr>
        </thead>
    </table>

    <br/>
    <div id="curDate" style="display:none;"><%=new java.util.Date().getTime()%></div>
    <div class="btnDiv">
        <button type="button" id="deleteAllBtn" class="zy-button">删除所有任务</button>
        <button type="button" id="initBtn" class="zy-button">初始化推送设置任务</button>
        <button type="button" id="deleteDefault" class="zy-button">删除推送设置任务</button>
        <button type="button" id="refreshTab" class="zy-button">刷新表格</button>
        <button type="button" onclick="location.href = '${pageContext.request.contextPath}/toHome.html';" class="zy-button">返回主页</button>
    </div>
</div>

<script src="${pageContext.request.contextPath}/static/js/lib/jquery-1.12.3.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/plugin/datatables/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/ui/ui-main.js"></script>
<script src="${pageContext.request.contextPath}/static/js/controller/base/base.controller.js"></script>
<script src="${pageContext.request.contextPath}/js/settings/bizThreshold/quartzManager.controller.js"></script>
</body>
</html>
